/api/auth/invites/:id

View a specific invite by its ID.

Info

This endpoint requires authentication.

Info

This endpoint requires administrator priviliges or higher.

Path Parameters

NameTypeDescription
idstringThe unique ID of the invite.

GET
Request

Response

Status: 200 OK

Content-Type: application/json

An Invite object.

Example

{
"id": "cmb7c5d3n0002vcatximfhrf0",
"createdAt": "2025-05-28T02:38:04.691Z",
"updatedAt": "2025-05-28T02:38:04.691Z",
"expiresAt": null,
"code": "falpjX",
"uses": 0,
"maxUses": null,
"inviterId": "cmb6042f500029kenox2u8npu",
"inviter": {
"username": "admin",
"id": "cmb6042f500029kenox2u8npu",
"role": "SUPERADMIN"
}
}

Error Responses

  • 404 Not Found

    If the invite with the specified ID does not exist.



Last updated: 5/28/2025
Edit this page on GitHub